<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Post Requirement </title>
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<script language="JavaScript" src="gen_validatorv4.js" type="text/javascript"></script>
</head>
<%
	
	String userName=(String)session.getAttribute("userName");			
	if(userName == null)
	{
		response.sendRedirect("index.jsp");
		return;
	}
 %>
<body>

<jsp:include page="/header.jsp" />

<div id="wrapper">
	<!-- start page -->
	<div id="page">
		<jsp:include page="/sideMenuLeft.jsp" />
		<!-- start content -->
		<div id="content">			
			<div class="post">
				<h1 class="title"><a href="#">Post Requirement</a></h1>
				<p class="byline"><br ></p>
				<div class="entry">
					
					<form action="postRequirementServlet" method="post" id="postRequirement">
						<table border="0" align="center" >
							<tr>
								<td colspan="3"></td>
							</tr>

							<tr>
								<td>
									<b>Transaction Type</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="radio" name="transactionType" id="transactionType" checked="checked"
										value="buy" />
									Buy <br/>
								
									<input type="radio" name="transactionType" id="transactionType"
										value="rent" />
									Rent/Lease <br/>
								
									<input type="radio" name="transactionType" id="transactionType"
										value="pg" />
									PG
								</td>
							</tr>

							<tr>
								<td>
									<b>Property Type</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="propertyType" name="propertyType">
										<option value="select">
											select Property Type
										</option>
										<option value="4">
											Apartment
										</option>
										<option value="1">
											Building
										</option>
										<option value="2">
											Land
										</option>
										<option value="5">
											Form House
										</option>
										<option value="3">
											Guest House
										</option>
										
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>Locality</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="locality" id="locality" />
								</td>
							</tr>
							
							<tr>
								<td>
									<b>City</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="city" id="city" />
								</td>
							</tr>

							<tr>
								<td>
									<b>District</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="district" name="district">
										<option value="">
											Select District Name
										</option>
										<option value="1">
											Guntur
										</option>
										<option value="3">
											Prakasam
										</option>
										<option value="2">
											Krishna
										</option>
										<option value="4">
											Nellore
										</option>
										<option value="5">
											Kadapa
										</option>
										<option value="6">
											Srikakulam
										</option>
										<option value="7">
											Vijaya Nagaram
										</option>
										<option value="8">
											Visakapatnam
										</option>
										<option value="9">
											East Godavari
										</option>
										<option value="10">
											West Godavaris
										</option>
										<option value="11">
											Nalgonda
										</option>
										<option value="12">
											Kammam
										</option>
										<option value="13">
											Chitture
										</option>
										<option value="14">
											Ananthapuram
										</option>
										<option value="15">
											Karnole
										</option>
										<option value="16">
											MehaboobNagar
										</option>
										<option value="17">
											Karim Nagar
										</option>
										<option value="18">
											Warangal
										</option>
										<option value="19">
											Adhilabad
										</option>
										<option value="20">
											Medak
										</option>
										<option value="21">
											Ranga Reddy
										</option>
										<option value="22">
											Nijamabad
										</option>


									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>State</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="state" name="state">
										<option value="">
											Select State Name
										</option>
										<option value="11">
											Andhra Pradesh
										</option>
										<option value="22">
											Karnataka
										</option>
										<option value="33">
											Tamilnadu
										</option>
										<option value="55">
											Kerala
										</option>
										<option value="44">
											Delhi
										</option>
										<option value="6">
											Panjob
										</option>
										<option value="7">
											Bihar
										</option>
										<option value="8">
											Uttar Pradesh
										</option>
										<option value="9">
											Madya Pradesh
										</option>
										<option value="10">
											Gujarath
										</option>
										<option value="11">
											Maharastra
										</option>
										<option value="12">
											Nagaland
										</option>
										<option value="13">
											Mijoraam
										</option>
										<option value="14">
											Megalaya
										</option>
										<option value="15">
											Gova
										</option>
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>Country</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="country" name="country">
										<option value="select">
											Select Country Name
										</option>
										<option value="111">
											India
										</option>
										<option value="2">
											England
										</option>
										<option value="3">
											America
										</option>
										<option value="4">
											Australia
										</option>
										<option value="5">
											South Africa
										</option>
									</select>
								</td>
							</tr>


							<tr>
								<td>
									<b>No.of Bed Rooms</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="noOfBedRooms" name="noOfBedRooms">
										<option value="0">
											-- Select --
										</option>
										<option value="1">
											1
										</option>
										<option value="2">
											2
										</option>
										<option value="3">
											3
										</option>
									</select>
								</td>

							</tr>


							<tr>
								<td>
									<b>Budget</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="budget" name="budget">
										<option value="0">
											-- Select --
										</option>
										<option value="1">
											1000000
										</option>
										<option value="2">
											2000000
										</option>
										<option value="3">
											3000000
										</option>
										<option value="4">
											4000000
										</option>
										<option value="5">
											4500000
										</option>
									</select>
								</td>
							</tr>



							<tr>
								<td>
									<b>Area in sq.ft</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="area" id="area" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Estimated Time of Purchase</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="estimatedTime" name="estimatedTime">
								        <option value="0">
								            select
								        </option>    	
										<option value="1">
											3Months
										</option>
										<option value="2">
											6Months
										</option>
										<option value="3">
											9Months
										</option>
										<option value="4">
											1Year
										</option>
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>Facing</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="radio" name="facing" id="facing" checked="checked" value="east" />
									East <br/>
								
									<input type="radio" name="facing" id="facing" value="west" />
									West <br/>
								
									<input type="radio" name="facing" id="facing" value="south" />
									South <br/>
								
									<input type="radio" name="facing" id="facing" value="north" />
									North
								</td>
							</tr>

							<tr>
								<td>
									<b>Amenties</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="amenties" name="amenties">
									    <option value="">
									        select
									    </option>    
										<option value="1">
											Club
										</option>
										<option value="2">
											Gym
										</option>
										<option value="3">
											Theater
										</option>
										<option value="4">
											Ground
										</option>
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>Landmarks</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="checkbox" name="landmarks" id="landmarks" 
										 />
									School <br/>
								
									<input type="checkbox" name="landmarks" id="landmarks" checked="checked"
										 />
									Hospital <br/>
								
									<input type="checkbox" name="landmarks" id="landmarks"
										 />
									Railway Station
								</td>
							</tr>
							<tr>
								<td>
									<b>Age of Construction</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="ageOfConstruction" name="ageOfConstruction">
										<option value="0" >
											Years
										</option>
										<option value="1">
											1
										</option>
										<option value="2">
											2
										</option>
										<option value="3">
											3
										</option>
									</select>
								</td>
							</tr>

							<tr></tr>
							<tr></tr>
							<tr></tr>

							<tr>
								<td></td>
								<td></td>
								<td>
									<input type="submit" value="submit" />
								<td>
							</tr>


						</table>
					</form>

					<script language="JavaScript" type="text/javascript">//<![CDATA[
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("postRequirement");
  frmvalidator.EnableMsgsTogether();
 
  frmvalidator.addValidation("transactionType","radio","Please select the Transaction Type");
  
  frmvalidator.addValidation("propertyType","numeric","Please select the Property Type");
  
  frmvalidator.addValidation("district","numeric","Please select the District Name");
  
  frmvalidator.addValidation("state","numeric","Please select the State Name");
  
  frmvalidator.addValidation("country","numeric","Please select the Country Name");
  
  frmvalidator.addValidation("noOfBedRooms","numeric","Please select the No.of Bed Rooms"); 
  
  frmvalidator.addValidation("budget","numeric","Please select the Budget");
  
  frmvalidator.addValidation("area","req","Please enter the area of the Property");
  
  frmvalidator.addValidation("estimatedTime","numeric","Please enter the estimated Time to Purchase the Property");
  
  frmvalidator.addValidation("facing","radio","Please select the Facing Of the Property");
  
  frmvalidator.addValidation("amenties","numeric","Please select the Amenties");
  
  
 //]]></script>
					
				</div>
			</div>
			
		</div>
		<!-- end content -->
		<!-- start sidebars -->
		<jsp:include page="/sideMenuRight.jsp" />
		<!-- end sidebars -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
</div>
<jsp:include page="/footer.jsp" />
</body>
</html>



